LensPatchVR180_NJB
Lens patch for Canon EOS VR (dual fisheye) VR180 footage in DaVinci Resolve
==========================================================================
Version 1.0 - 2026-11-14

This effect macro was created by Nick Brazzi with Claude AI.
Visit www.bestseatimmersive.com for information and tutorials.
Provided as is, without warranty. Test before using on client work.

WHAT IT DOES
------------
This tool is meant for VR180 stereo footage shot with the Canon EOS VR
system, such as the Canon EOS R5 C with the RF 5.2mm Dual Fisheye
lens.

With a dual fisheye lens, each lens can see the other lens at the
edge of its image. In the LEFT eye the neighbouring lens shows at the
RIGHT edge of the frame; in the RIGHT eye it shows at the LEFT edge.

LensPatchVR180 covers each lens with matching image taken from the other
eye, for both eyes at once. It is a Fusion page tool: you add it to a
clip's Fusion composition.


COMPATIBILITY
-------------
This tool works when the timeline resolution matches the
resolution of the source clips. If you have a sequence that
contains immersive clips at different resolutions, this tool
will likely not work.

This effect was built for immersive video shot with the Canon
EOS R5 C with the RF 5.2mm Dual Fisheye lens. It will likely work
with other Canon EOS VR configurations, but other configurations
have not been tested.


REQUIREMENTS
------------
- DaVinci Resolve Studio (the tool uses Resolve's stereo nodes, and
  stereo immersive projects require Studio).
- VR180 footage from a Canon EOS VR system camera and Dual Fisheye
  lens (for example, the Canon EOS R5 C), converted to 3D 180 degree
  equirectangular, side by side (both eyes in one frame), and set up
  in Resolve as a stereo clip (Clip Attributes: Stereoscopic Mode =
  Side by Side, Projection Format = Equirectangular 180).
- Footage from other dual-lens VR180 cameras may work if the
  neighbouring lens appears at the frame edges in the same way, but
  the tool was designed and tested with Canon EOS VR footage.


INSTALLING
----------
There are two ways to install. Choose one.

Option A - double-click (easiest)
  1. Open DaVinci Resolve.
  2. Double-click LensPatchVR180_NJB.drfx
     (or drag it onto the Fusion page).
  3. Click Install when Resolve asks.
  4. Restart Resolve.
  The tool appears on the Fusion page in the Effects panel under
  Templates > Fusion. It does NOT appear in the Add Tool menu or
  the Shift+Space list.

Option B - manual (adds the tool to Shift+Space and Add Tool)
  Copy LensPatchVR180_NJB.setting into your Fusion Macros folder,
  then restart Resolve.

  Mac
    The Library folder is hidden, so it doesn't show in Finder
    normally. To get to the Macros folder:
      1. In Finder, hold down the Option key and click the Go menu
         at the top of the screen. Library appears in the list
         while Option is held down. Click Library.
      2. In the Library folder, open these folders in order:
           Application Support > Blackmagic Design >
           DaVinci Resolve > Fusion > Macros
      3. Drag LensPatchVR180_NJB.setting into the Macros folder.
    The full path is:
      ~/Library/Application Support/Blackmagic Design/
      DaVinci Resolve/Fusion/Macros/
    (~ is your home folder, the one with your user name.)

  Windows
    Paste this path into the address bar of File Explorer and press
    Enter, then copy the file into that folder:
      %AppData%\Blackmagic Design\DaVinci Resolve\Support\Fusion\Macros\

  Linux
      ~/.local/share/DaVinciResolve/Fusion/Macros/
    (folders starting with "." are hidden; press Ctrl+H in the file
    manager to show them)

  The tool then appears when you press Shift+Space on the Fusion
  page and type LensPatchVR180, and in the node area's right-click
  menu under Add Tool > Macros.

Tip: if you already installed with Option A and want Shift+Space,
you can also do Option B. Remember to update both copies when a new
version comes out.


ONE-TIME TIMELINE SETTING  (important)
--------------------------------------
Before patching, set this on the timeline and LEAVE IT THAT WAY:

  Edit page > right-click the timeline > Timeline Settings >
  Mismatched Resolution: "Center crop with no resizing"

Why: once a clip has a Fusion composition, Resolve resizes it using
the Mismatched Resolution setting. With "Scale full frame with crop"
the patched clip is zoomed in by about 5% and the frame edges (where
the lenses are) are cut off. "Center crop with no resizing" keeps the
same framing as the original clip.

Note: this setting also affects any other media on that timeline whose
resolution does not match the timeline (logos, titles, other clips).
Check those after changing it.


ADDING IT TO A CLIP
-------------------
  1. On the Edit page, select the clip and open the Fusion page.
     The clip's composition has MediaIn1 (left eye), MediaIn2 (right
     eye), MediaOut1 and MediaOut2.
  2. Add LensPatchVR180_NJB:
       Option A install: Effects panel > Templates > Fusion, then
       drag it onto the node area.
       Option B install: press Shift+Space and type LensPatchVR180.
  3. Connect it:
       MediaIn1  -> Input 1 (yellow input, left side of the node)
       MediaIn2  -> Input 2 (green input, bottom of the node)
       Output 1 (main output box, right side)  -> MediaOut1
       Output 2 (small box under the node)     -> MediaOut2
     Hover over an input or output to see its name.
     Check that MediaOut2 comes from Output 2 - if both MediaOuts are
     connected to Output 1, the right eye will be wrong.


ADJUSTING THE PATCH
-------------------
Select the LensPatchVR180 node and use its Inspector.

Preview
  Choose Show Left Eye or Show Right Eye, then adjust that eye's
  controls. In preview mode:
  - the chosen eye is shown on both outputs, so it does not matter
    which eye your viewer displays;
  - the main image turns grey and the patch stays in colour, so you
    can see exactly where the patch is and line it up;
  - a "PREVIEW" warning appears in the centre of the frame.

Left / Right Patch Adjustments (one group per eye)
  Border Position  How far the patch reaches in from the frame edge.
                   Move it as close to the edge as possible without
                   revealing the lens.
  Patch Position   Slides the borrowed image to line its content up
                   with the surrounding image.
  Patch Angle      Very small rotation (slider -1 to +1 degree; you
                   can type other values). Rotation is around Patch
                   Position, so you may need to nudge Patch Position
                   after changing the angle.
  Patch Size       Scales the borrowed image (below 1.0 = smaller).
  Mask Feather     Softens the edge of the patch.

If Patch Position or Patch Size leaves an empty gap at the frame edge,
the gap is filled with black instead of showing the lens.

Suggested workflow
  1. Preview: Show Left Eye. Set Left Border Position, then line up
     the patch with Left Patch Position / Angle / Size / Feather.
  2. Preview: Show Right Eye. Repeat with the Right controls.
  3. Preview: Off (Render).


BEFORE RENDERING
----------------
Set Preview back to "Off (Render)". If you forget, the grey preview
image and the warning text will be rendered into your video.

Check the result in a side-by-side export or on a headset to confirm
both eyes are patched.


UPDATING OR REMOVING
--------------------
- Installed with the .drfx: to update, install the newer .drfx and
  choose to overwrite. To remove, on the Fusion page open the Effects
  library > Templates, right-click > Show Folder, and delete
  LensPatchVR180_NJB.drfx, then restart Resolve.
- Installed manually: replace or delete the .setting file in the
  Macros folder, then restart Resolve.
- Clips that already use the tool keep their own copy; re-add the
  tool to a clip to pick up a newer version.
- To see which version a clip is using, open Setup Instructions in the
  tool's Inspector: the first line shows the version number.


TROUBLESHOOTING
---------------
The patched clip looks zoomed in / the frame edges are cut off
  -> Set Mismatched Resolution to "Center crop with no resizing"
     (see ONE-TIME TIMELINE SETTING).

The lens is visible in Fusion's viewer at some times but not others
  -> Same cause: the Mismatched Resolution setting.

The right eye is not patched in the export
  -> Check the wiring: Output 2 (small box under the node) must go to
     MediaOut2.

Can I use this as an Edit page effect?
  -> No. In current versions of Resolve, Fusion effects applied on the
     Edit page are only applied to the left eye of stereo clips, so
     the tool must be used on the Fusion page.

I can't find the tool after installing
  -> Restart Resolve first.
  -> Option A (.drfx): look in the Effects panel under
     Templates > Fusion. A .drfx install does not show up in
     Shift+Space or Add Tool.
  -> Option B (.setting): press Shift+Space on the Fusion page and
     type LensPatchVR180. If it is missing, check the file is in the
     Macros folder (not a subfolder) and ends in .setting.


VERSION HISTORY
---------------
1.0 (2026-11-14)
  First release.
